﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;

namespace BUS
{
    public class DoanhThuBUS
    {
        public DataTable LoadDoanhThu()
        {
            DoanhThuDAO DAO = new DoanhThuDAO();
            return DAO.LoadDoanhThu();
        }
        public DataTable LoadDoanhThuTop(int _numb)
        {
            DoanhThuDAO DAO = new DoanhThuDAO();
            return DAO.LoadDoanhThuTop(_numb);
        }
        public void UpdateSoHoaDon(int _maDT, string _soHD)
        {
            DoanhThuDAO DAO = new DoanhThuDAO();
            DAO.UpdateSoHoaDon(_maDT, _soHD);
        }
        public void UpdateGiamGia_ConLai(int _maDT, float _giamGia, float _conLai)
        {
            DoanhThuDAO DAO = new DoanhThuDAO();
            DAO.UpdateGiamGia_ConLai(_maDT, _giamGia, _conLai);
        }
        public void NapDuLieuMoi()
        {
            DoanhThuDAO DAO = new DoanhThuDAO();
            DAO.NapDuLieuMoi();
        }
        public DataTable LoadHoaDonTheoMaDT(int _maDT)
        {
            DoanhThuDAO DAO = new DoanhThuDAO();
            return DAO.LoadHoaDonTheoMaDT(_maDT);
        }
    }
}
